package cn.aiweiyi.qingjing.coupon.template;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author 青衿
 * @Date 2020/11/16 19:18
 * 模块微服务启动类
 * @EnableScheduling 开启定时任务
 * @EnableScheduling 开启定时任务
 * @EnableJpaAuditing 开启JPA审计(配合实体类上的 @ CreateDate注解)
 * @EnableEurekaClient 作为Eureka Server的客户端进行注册
 **/
//开启定时任务
@EnableScheduling
//开启JPA审计(配合实体类上的@CreateDate注解)
@EnableJpaAuditing
//作为Eureka Server的客户端进行注册
@EnableEurekaClient
@SpringBootApplication(scanBasePackages = {"cn.aiweiyi.qingjing.coupon"})
public class TemplateApplication {
    public static void main(String[] args) {
        SpringApplication.run(TemplateApplication.class, args);
    }
}
